package com.lhframework.socket.model;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lh on 2017/8/11.
 * 实时轨迹位置
 */
@Document(collection = "RealTrack")
public class RealTrack implements Serializable {
    @Id
    private String id;
    private Long activityId;
    private Long userId;
    private Double latitude;
    private Double longtitude;
    private Date createTime = new Date();

    public RealTrack() {
    }

    public RealTrack(Long activityId, Long userId, Double latitude, Double longtitude, Date createTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.latitude = latitude;
        this.longtitude = longtitude;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongtitude() {
        return longtitude;
    }

    public void setLongtitude(Double longtitude) {
        this.longtitude = longtitude;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
